package adapter

import "fmt"

func Usage() {
	// 类型继承/组合方式（类适配器模式）
	var ePower12 IPower12 = &ExtendsAdapter{}

	fmt.Println(ePower12.Supply12())
	// 委托（对象适配器模式）
	var dPower12 IPower12 = &DelegateAdapter{Power220: &Power220{}}

	fmt.Println(dPower12.Supply12())
}
